Alexey Samsonov: #ifdefs out undefined function in static build of libc++ w/o RTTI. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@176026 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/CMakeLists.txt b/CMakeLists.txt index c0bde09..8f5047c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt 
@@ -228,6 +228,10 @@  list(APPEND LIBCXX_CXX_FEATURE_FLAGS -DNDEBUG)  endif()  endif() +# Static library +if (NOT LIBCXX_ENABLE_SHARED) + list(APPEND LIBCXX_CXX_FEATURE_FLAGS -D_LIBCPP_BUILD_STATIC) +endif()    # This is the _ONLY_ place where add_definitions is called.  add_definitions(